<?php
declare(strict_types=1);
/**
 * 游戏
 */

namespace App\Controller\slots;
use App\Controller\AbstractController;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Hyperf\Di\Annotation\Inject;

/**
 * t1game ,这里对接的四方灰度
 */
#[Controller(prefix:"t1slots")]
class T1slotsController extends AbstractController{

    #[Inject]
    protected HuiduslotsController $huidu;

    /**
     * @return void
     */
    #[RequestMapping(path: 'TransferInOut')]
    public function TransferInOut(){
        return $this->response->json($this->huidu->TransferInOut($this->request->all()));
    }

    /**
     * 获取游戏启动url
     * @param $uid  玩家uid
     * @param $gameid  游戏的id
     * @return array
     */
    public function getGameUrl($uid,$gameid){
        return  $this->huidu->getGameUrl($uid,$gameid,'t1','t1slots');
    }

}







